{subtemplate jameson_read:author_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div id="jameson_read" class="author_jamesonread  jameson_read uk-grid-collapse pt10" uk-grid>
	<div class="uk-width-medium" style="width: 230px;">
		<div class="uk-border-e6 back-f9">
			<div class="uk-card">
			    <div class="uk-card-header uk-text-center">
			            <div class="">
			                <img class="uk-border-circle" width="80" height="80" src="{eval echo avatar($_G['uid'],'big',true);}">
			            </div>
			            <div class="">
			                <h3 class="uk-card-title uk-margin-remove-bottom">{$_G['username']}</h3>
			                <p class="uk-text-meta uk-margin-remove-top">
			                	{lang jameson_read:yifabutushu}[{$_G['jameson_read']['booksnum']}]{lang jameson_read:bu}
			                </p>
			            </div>
			    </div>
			    <div class="uk-card-footer">
			    	<a href="{eval echo jamesonurl('author',0,'book');}" class="uk-button uk-button-primary">{lang jameson_read:tianjiaxinshu}+</a>
			    </div>
			</div>
			<ul class="uk-nav-primary uk-nav-parent-icon uk-border-top uk-border-bottom" uk-nav>
			  	<li class="pl10 {if !isset($_GET['act']) || ($_GET['act'] == 'index')} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'index');}"><span class="uk-margin-small-right" uk-icon="icon: pencil"></span>{lang jameson_read:zuopinguanli}</a>
			  	</li>
			  	<li class="pl10 {if $_GET['act'] == 'xiajia'} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'xiajia');}"><span class="uk-margin-small-right" uk-icon="icon: menu"></span>{lang jameson_read:xiajiazuopin}</a>
			  	</li>
		  		{if $_G['jameson_read']['enableshupiao']}
			  	<li class="pl10 {if $_GET['act'] == 'shupiao'} uk-active {/if} uk-border-bottom">
		  	        <a class="" href="{eval echo jamesonurl('author',0,'shupiao');}"><span class="uk-margin-small-right" uk-icon="icon: credit-card"></span>{lang jameson_read:wodeshupiao}</a>
			  	</li>
			  	{/if}
			  	<li class="pl10 {if $_GET['act'] == 'dashang'} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'dashang');}"><span class="uk-margin-small-right" uk-icon="icon: album"></span>{lang jameson_read:dashangjilu}</a>
			  	</li>
			    <li class=" pl10   {if $_GET['act'] == 'sell'} uk-active {/if}">
			        <a class="" href="{eval echo jamesonurl('author',0,'sell');}"><span class="uk-margin-small-right" uk-icon="icon: table"></span>{lang jameson_read:xiaoshou}{lang jameson_read:jilu}</a>
			    </li>
			</ul>
			{if $_G['jameson_read']['authorcentergg']}
			<div class="uk-padding-small" uk-alert>
				<!--{$_G['jameson_read']['authorcentergg']}-->
			</div>
			{/if}
		</div>
		</div>

<div class="uk-width-expand uk-margin-left">
	<div class="text-center">
	    <h1 class="uk-heading-divider">{lang jameson_read:yifabutushu}</h1>
	    <p class="">
	    	{if $_G['uid'] ==1}
				{lang jameson_read:qitahuiyuanguanli}
			{/if}
	    </p>
	</div>
	
	<div class="cl mtm mbm">
		<form action="./plugin.php" class="uk-form z">
			<input type="hidden" name="id" value="jameson_read">
			<input type="hidden" name="contrl" value="author">
			<input type="hidden" name="act" value="index">
		    	<div class="uk-form-controls uk-margin-remove ">
			        <input type="text" class="uk-input" style="width: auto;" placeholder="{lang jameson_read:shurutushumingzi}" value="{$keybookname}"  id="searchbookname" name="book_name" />
				    <button type="submit" id="sousuoaction" class="uk-button uk-button-danger" >{lang jameson_read:sousuo}</button>
		    	</div>
		</form>
		<div class="y">
		    {if $_G['jameson_read']['fid']}
		    	{if !$authorinfo['status']}
		    		<div class="uk-alert-danger" uk-alert>
		    			{lang jameson_read:meiyouquanxianfabuxinshu}
		    		</div>
		    	{/if}
		    {else}
		    	<div class="uk-alert-danger" uk-alert>{lang jameson_read:weishezhitushubankuai}</div>
		    {/if}
		</div>
	</div>
	{if $books}
	<form class="uk-form" method="post" action="./plugin.php?id=jameson_read&contrl=author&act=postbookindex">
	<table class="uk-table uk-table-hover uk-border-e6"  id="bookindex">
		<thead class="back-f9">
			<tr>
				<td><a href="javascript:;" data-select="1" onclick="jamesonauthor.selectall(this)" id="quanxuan" class="xs1 xg1">{lang jameson_read:quanxuan}</a> &nbsp;{lang jameson_read:xuhao}</td>
				<td>{lang jameson_read:shuming}</td>
				<td>{lang jameson_read:yiwancheng}{lang jameson_read:zhangjie}</td>
				<td>{lang jameson_read:zhuangtai}</td>
				<td>{lang jameson_read:tuijian}</td>
				<td class="uk-text-right">{lang jameson_read:caozuo}</td>
			</tr>
		</thead>
	<tbody>
	{loop $books $value}
		<tr class=" {if $_G['uid']==1 && $value['uid']!=1}back-f9{/if}" id="books_tr_{$value['book_id']}">
			<td class="">
		    	<div class="uk-form-row">
					<div class="uk-form-controls">
			    	{if $authorinfo['edit']}
					    <input type="checkbox" data-id="{$value['book_id']}" class="fastremove" name="remove[{$value['book_id']}]" />
					{/if}
			    		<input class="uk-input uk-input-45px"  type="text" name="ordernum[{$value['book_id']}]" value="{$value['ordernum']}" />
		    		</div>
		    	</div>
			</td>
			<td>
				<div class="uk-form-row">
					<div class="uk-form-controls">
						<input type="text" class="uk-input" name="bookname[{$value['book_id']}]" value="{$value['book_name']}" />
					</div>
				</div>
			</td>
		  	<td>
		  		{$value['hascol']}
		  	</td>
		  	<td>
		  		{if $value['plan']}{lang jameson_read:yiwanjie}{else}{lang jameson_read:lianzaizhong}{/if}
		  	</td>
		  	<td>
		  		{if $value['is_top']>0}{lang jameson_read:yituijian}{else}{lang jameson_read:weituijian}{/if}
		  	</td>
		  	<td class="uk-text-right">
		  		<a href="{eval echo jamesonurl('author',$value['book_id'],'book')}" class="">{lang jameson_read:guanli}</a> 
		  		<a href="{eval echo jamesonurl('book',$value['book_id']);}" class="">{lang jameson_read:mulu}</a>
			  	{if $authorinfo['edit']}
			  		<a class="" href="javascript:;" onclick="jameson.remove(this,'books',{$value['book_id']})">{lang jameson_read:shanchu}</a>
			  	{/if}
		  	</td>
		</tr>
	{/loop}
	</tbody>
	</table>
		{if $authorinfo['edit']}
		<a href="javascript:;" onclick="jameson.fastremove('bookindex','books')" class="uk-button">{lang jameson_read:shanchuxuanzhongtushu}</a>
		{/if}
		<button type="submit" class="uk-button-danger uk-button">{lang jameson_read:tijiao}</button>
		<input type="hidden" name="formhash" value="{FORMHASH}" />
	</form>
	<div class="pg cl">{$pageshow}</div>
	{else}
		<div class="uk-alert-danger uk-padding-small" uk-alert>{lang jameson_read:zanwujilu}</div>
	{/if}
</div>


</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
<!--{subtemplate jameson_read:all_footer}-->